<% if @data_check == true %>
    $('tr#empty').remove();
    $('tbody#hotel_images').append('<%= j render partial: "hotel_images/add_row" %>');
    $('#add_image').html('<%= j render partial: "hotel_images/form", locals: { :hotel_id => @hotel_id }   %>');
<% else %>
    alert('something problem!');
<% end %>
